/*
 * TaskMng.h
 *
 *  Created on: Dec 20, 2011
 *      Author: quotrader
 */

#ifndef TASKMNG_H_
#define TASKMNG_H_

#ifndef FINISH_ALL
#define FINISH_ALL 0
#endif

#include "Task.h"
#include "../Scale/Scale.h"

class TaskMng {
public:
	int numTask;
	int numMaxTask;
	Task *tasks;
	bool changed;

	TaskMng();

	void 	loadTask(Scale *s);
	Task* 	getAllTasks();
	Task 	getTask(int index);
	void 	addTask(Task task, int index);
	void 	setTask(Task task, int index);

};

#endif /* TASKMNG_H_ */
